<?php
/**
 * The template for displaying a single post
 *
 * @package Qualeb
 * @since Qualeb 1.0
 */
?>
	<article id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
		<?php 
			// Get the post's featured image
			$src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), 'blog-post-image');
			$src = $src[0];
			
		?>
			<div class="blog-article-c"> 					
				<div class="blog-article-content"> 
					<!-- .blog-article-left -->
						<div class="responsive-meta">
							<time class="entry-date" datetime="<?php echo get_the_date( 'c' ); ?>" pubdate><?php echo get_the_date( 'M j, Y'); ?></time> &nbsp;&nbsp;
							<span class="author vcard ">by<a class="url fn n" href="<?php echo get_author_posts_url( get_the_author_meta( 'ID' ) ); ?>" title="<?php sprintf( esc_attr__( 'View all posts by %s', 'demagician' ), get_the_author() ); ?>"> <?php echo get_the_author(); ?></a></span> &nbsp;&nbsp;
							<span class="rcomments-link"><?php echo dm_postfooter_postcomments(); ?> </span>
						</div><!-- .responsive-meta -->
                        <div class="single-article-content">
							<?php
                            if (isset($src)){
                            ?>
                                <img class="blog-article" src="<?php echo $src; ?>" alt="' . get_the_title() . '"/>
                                
                            <?php } ?>
                        
                            <?php
                                the_content(); 
                            ?>
						</div>			
				</div> <!-- #blog-article-content -->
			</div>	<!-- #blog-article-container -->
		<div style="clear:both;"></div>
	</article><!-- #post-<?php the_ID(); ?> -->
	